package com.sell.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sell.entity.Membertype;
import com.sell.mapper.MembertypeMapper;
@Service("membertypeService")
public class MembertypeServiceImpl implements MembertypeService {
  @Resource
  private MembertypeMapper membertypeMapper;
	public List<Membertype> getAllMemType() {
		List<Membertype> memtypes=membertypeMapper.getAllMemType();
		return memtypes;
	}

	public Membertype getMemTypeById(Integer typeId) {
		Membertype memtype=membertypeMapper.getMemTypeById(typeId);
		return memtype;
	}

}
